/*
 * @[H]:  Copyright (c) 2021 Phytium Information Technology, Inc. 
 * 
 *  SPDX-License-Identifier: Apache-2.0. 
 * 
 * @Date: 2021-07-22 17:24:36
 * @LastEditTime: 2021-08-02 10:19:43
 * @Description:  Description of file
 * @Modify History: 
 * * * Ver   Who        Date         Changes
 * * ----- ------     --------    --------------------------------------
 */

#include "f_xmac.h"
#include "parameters.h"
#include "ft_types.h"
/************************** Constant Definitions *****************************/

/***************** Macros (Inline Functions) Definitions *********************/

/************************** Function Prototypes ******************************/

/************************** Variable Prototypes ******************************/

/*
 * The configuration table for emacps device
 */

FXmacConfig FXmacConfigTable[FT_XMAC_NUM] =
    {
        {(u32)FT_XMAC0_ID,              /* Device ID */
         (uintptr)FT_XMAC0_BASEADDRESS, /* Device base address */
         FXMAC_PHY_INTERFACE_MODE_RGMII,
         8,
         1,
         0,
         FT_XMAC0_HOTPLUG_IRQ_NUM,
         {
             FT_XMAC0_QUEUE0_IRQ_NUM,
             FT_XMAC0_QUEUE1_IRQ_NUM,
             FT_XMAC0_QUEUE2_IRQ_NUM,
             FT_XMAC0_QUEUE3_IRQ_NUM,
             FT_XMAC0_QUEUE4_IRQ_NUM,
             FT_XMAC0_QUEUE5_IRQ_NUM,
             FT_XMAC0_QUEUE6_IRQ_NUM,
             FT_XMAC0_QUEUE7_IRQ_NUM,
         }},
#ifdef FT_XMAC1_ID

        {(u32)FT_XMAC1_ID,              /* Device ID */
         (uintptr)FT_XMAC1_BASEADDRESS, /* Device base address */
         FXMAC_PHY_INTERFACE_MODE_RGMII,
         4,
         1,
         0,
         FT_XMAC1_HOTPLUG_IRQ_NUM,
         {
             FT_XMAC1_QUEUE0_IRQ_NUM,
             FT_XMAC1_QUEUE1_IRQ_NUM,
             FT_XMAC1_QUEUE2_IRQ_NUM,
             FT_XMAC1_QUEUE3_IRQ_NUM,
         }},
#endif // FT_XMAC1_ID
#ifdef FT_XMAC2_ID
        {(u32)FT_XMAC2_ID,              /* Device ID */
         (uintptr)FT_XMAC2_BASEADDRESS, /* Device base address */
         FXMAC_PHY_INTERFACE_MODE_RGMII,
         4,
         1,
         0,
         FT_XMAC2_HOTPLUG_IRQ_NUM,
         {
             FT_XMAC2_QUEUE0_IRQ_NUM,
             FT_XMAC2_QUEUE1_IRQ_NUM,
             FT_XMAC2_QUEUE2_IRQ_NUM,
             FT_XMAC2_QUEUE3_IRQ_NUM,
         }},
#endif // FT_XMAC2_ID
#ifdef FT_XMAC3_ID
        {(u32)FT_XMAC3_ID,              /* Device ID */
         (uintptr)FT_XMAC3_BASEADDRESS, /* Device base address */
         FXMAC_PHY_INTERFACE_MODE_RGMII,
         4,
         1,
         0,
         FT_XMAC3_HOTPLUG_IRQ_NUM,
         {
             FT_XMAC3_QUEUE0_IRQ_NUM,
             FT_XMAC3_QUEUE1_IRQ_NUM,
             FT_XMAC3_QUEUE2_IRQ_NUM,
             FT_XMAC3_QUEUE3_IRQ_NUM,
         }},
#endif // FT_XMAC3_ID
};
/** @} */
